package com.tbit.main.service;

import com.tbit.main.pojo.BmsAbnormal;
import com.tbit.main.pojo.BmsAbnormalGroup;

import java.util.List;

/**
 * @author LMY
 * @create 2022-07-18 14:16
 */
public interface BmsAbnormalService {

    /***
     * 根据条件查询云bms异常电池
     * @param abnormalType
     * @param handle
     * @param batteryNO
     * @return
     */
    List<BmsAbnormal> getAbnormal(Integer adAccountId, Integer abnormalType, Integer handle, String batteryNO, String startTime, String endTime);

    /**
     * 根据区域查询异常电池分组
     *
     * @param adAccountId
     * @return
     */
    BmsAbnormalGroup abnormalGroup(Integer adAccountId, Integer abnormalType, String batteryNO, String startTime, String endTime);

    /**
     * 批量处理电池异常
     *
     * @param adAccountId
     */
    void handle(Integer adAccountId, Integer abnormalType, String batteryNO, String startTime, String endTime);

    /**
     * 查询电池数
     *
     * @param adAccountId
     * @param abnormalType
     * @param batteryNO
     * @param startTime
     * @param endTime
     * @return
     */
    Integer abnormal(Integer adAccountId, Integer abnormalType, String batteryNO, String startTime, String endTime);

    /**
     * 查询电池编号
     *
     * @param adAccountId
     * @param abnormalType
     * @param batteryNO
     * @param startTime
     * @param endTime
     * @return
     */
    List<String> abnormalBatteryNO(Integer adAccountId, Integer abnormalType, String batteryNO, String startTime, String endTime);

    /**
     * 查询记录总数
     *
     * @param adAccountId
     * @param abnormalType
     * @param batteryNO
     * @param startTime
     * @param endTime
     * @return
     */
    Integer abnormalLog(Integer adAccountId, Integer abnormalType, String batteryNO, String startTime, String endTime);

    /**
     * 删除
     *
     * @param batteryNO
     */
    void delete(String batteryNO);
}
